using Cysharp.Threading.Tasks;
using TEngine;
using UnityEngine;
using ProcedureOwner = TEngine.IFsm<TEngine.IProcedureManager>;


    public class UIProcedure : TEngine.ProcedureBase
    {
        protected override void OnInit(ProcedureOwner procedureOwner)
        {
        }
        protected override void OnEnter(ProcedureOwner procedureOwner)
        {
            ResourceInit().Forget();
        }
        protected override void OnUpdate(ProcedureOwner procedureOwner, float elapseSeconds, float realElapseSeconds)
        {
        }
        async UniTask ResourceInit()
        {
            var initializationOperation = await GameModule.Resource.InitPackage();
            GameModule.UI.ShowUI<Window>();
        }
    }

